package com.woniuxy.main.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.UpdateProvider;

import com.woniuxy.main.pojo.Lesson;
import com.woniuxy.main.provider.LessonProvider;

public interface LessonMapper {
	//创建课程表
	@Insert("insert into lesson(cid) values(#{cid})")
	public int insertLesson(int cid);
	//更新表
	@UpdateProvider(type=LessonProvider.class,method="updateLesson")
	public int updateLesson(Lesson lesson);
}
